﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BootstrapAdmin.DataAccess.Models;

/// <summary>
/// 刷卡信息
/// </summary>
[Table("ops_card_swiping")]
public class CardSwiping
{
    public int Id { get; set; }

    /// <summary>
    /// 工站
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "工站")]
    public string? Station { get; set; }

    /// <summary>
    /// 卡号
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "卡号")]
    public string? CardNo { get; set; }

    /// <summary>
    /// 刷卡解决的警报分类信息，多个以逗号分隔
    /// </summary>
    [Display(Name = "警报类型")]
    public string? Alarm { get; set; }

    /// <summary>
    /// 刷卡时间
    /// </summary>
    [Display(Name = "刷卡时间")]
    public DateTime CreatedAt { get; set; }
}
